#ifndef SERIALSEARCHWORKER_H
#define SERIALSEARCHWORKER_H

#include <QObject>
#include <QSerialPortInfo>
#include <QStringList>

class SerialSearchWorker : public QObject
{
    Q_OBJECT
public:
    explicit SerialSearchWorker(QObject *parent = nullptr);
    ~SerialSearchWorker();

signals:
    void portsFound(QStringList portList); // 信号：返回找到的串口列表

     void sendReadRequest(); // 用于通知主线程进行读取操作
     void sendReadInputRegRqe();
public slots:
    void searchSerialPorts(); // 搜索串口的槽函数
    void processTask();
    void inputreadTask();
};

#endif // SERIALSEARCHWORKER_H
